<?php namespace system\database\migrations;

use houdunwang\database\build\Migration;
use houdunwang\database\build\Blueprint;
use houdunwang\database\Schema;

class ChangeConfogTable extends Migration
{
    //执行
    public function up()
    {
        Schema::table('config', function (Blueprint $table) {
                $table->string('response')->defaults('')->comment('微信系统回复')->add();
        });
    }

    //回滚
    public function down()
    {
        Schema::dropField('config', 'response');
    }
}